home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 February
/
EnigmA AMIGA RUN 15 (1997)(G.R. Edizioni)(IT)[!][issue 1997-02][PLANET CD V].iso
/
enigma
/
earcd
/
utility
/
utilfile
/
rw2nt181.lha
/
Raw2Ent.ced
< prev
next >
Wrap
Text File
|
1996-12-26
|
1KB
|
70 lines
/*
** Raw2Ent.ced
**
** $VER: Raw2Ent.ced 1.01 (26.12.96)
**
** This script implements Raw2Ent into CED
**
** This script requires CygnusEd Professional v3.5 (or later)
** and Raw2Ent to run.
**
** Copyright © 1996 Tamio Patrick Honma
*/
TempClip = "T:R2EClip"
TempEnt = "T:R2EEnt"
ADDRESS "rexx_ced"
OPTIONS RESULTS
GETSTRING "TAG" /* Get arguments for Raw2Ent */
Args = RESULT
IF (POS("CHECK",UPPER(Args))~=0) THEN DO
'BEG OF FILE'
MARK
'END OF FILE'
COPY
SAVE CLIP AS TempClip
ADDRESS
OPTIONS FAILAT 1000000
ADDRESS COMMAND "Raw2Ent" TempClip "CHECK RETBYTE"
retbyte = RC
ADDRESS "rexx_ced" 'JUMP TO BYTE' retbyte
END
ELSE DO
CUT
IF (RESULT = 0) THEN DO
OKAY2 "No block selected! Should I mark the file instead?"
IF (RESULT=1) THEN DO
'BEG OF FILE'
MARK
'END OF FILE'
CUT
END
ELSE DO
CEDTOFRONT
OKAY1 "Can't create entities for block. No block was marked."
EXIT 5
END
END
SAVE CLIP AS TempClip
ADDRESS COMMAND "Raw2Ent" TempClip TempEnt Args
ADDRESS "rexx_ced" INCLUDE FILE TempEnt
/* wait for finished activity */
STATUS RESTNAME
ADDRESS COMMAND "Delete >NIL:" TempEnt
END
ADDRESS COMMAND "Delete >NIL:" TempClip
EXIT 0